package cn.besbing.server.controllers.service;


import cn.besbing.server.service.general.MailServiceImpl;
import cn.besbing.server.utils.MailDTO;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * LIMS WEB无校验调用服务数据
 */

@RestController
@RequestMapping("limsNoCertificateService")
public class LimsNoCertificateController {


    @Autowired
    MailServiceImpl mailService;

    @PostMapping("sendMail")
    public void sendMail(MailDTO mailDTO){
        mailService.sendMail(mailDTO);
    }

    @PostMapping("sendMailForExternal")
    public void sendMailForExternal(@RequestBody JSONObject jsonStr){
        mailService.sendMailForExternal(jsonStr);
    }

}
